<template>
  <div class="recommand">
    <div class="title">
      周末去哪儿
    </div>
    <div class="content border-bottom" v-for="item in list" :key="item.id">
      <div class="img-wrapper">
        <img :src="item.imgUrl" alt="">
      </div>
      <div class="info-wrapper">
        <p class="info-title">{{item.title}}</p>
        <p>{{item.desc}}</p>
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'HomeWeekend',
    props: {
      list: Array
    }
  }
</script>
<style lang="stylus" scoped>
.recommand {
  .title{
    line-height .8rem
    background-color #eee
    padding-left .1rem
    font-weight bold
  }
  .content{
    .img-wrapper{
      box-sizing border-box
      height 0
      padding-bottom 37%
      img {
        width 100%
      }
    }
    .info-wrapper{
      padding .1rem
      .info-title{
        font-weight bold
        line-height .4rem 
        }
    }
  }
}
</style>
